export const getSupplierColumns = (parent) => {
  return [
    {
      prop: 'supplierName',
      label: '供应商名称'
    },
    {
      prop: 'supplierCode',
      label: '供应商代码'
    },
    {
      prop: 'supplierStatusName',
      label: '供应商状态'
    },
    {
      prop: 'supplierLevel',
      label: '供应商等级'
    },
    {
      prop: 'quoteStatusName',
      label: '报价状态'
    },
    // 原字段onlineCollaboration 18913为是，18914为否
    {
      prop: 'onlineCollaborationName',
      label: '询价单是否协同'
    },
    {
      prop: 'supplierLinkman',
      label: '供应商联系人'
    },
    {
      prop: 'supplierPhone',
      label: '供应商电话'
    },
    {
      prop: 'offerEndTime',
      label: '报价有效期'
    },
    {
      prop: 'fileGroupId',
      label: '供应商附件',
      render: (h, { row }) => {
        if (row.fileGroupId) {
          return <el-link onClick={() => parent.handleViewFileList(row.fileGroupId)} type="primary">查看附件</el-link>
        }
      }
    },
  ]
}
export const GOODS_COLUMNS = [
  {
    key: 'skuTypeName', // skuType 1正常商品2 临采商品 3 客户专属商品
    title: '商品类型'
  },
  {
    key: 'categoryName',
    title: '商品品类'
  },
  {
    key: 'skuCode',
    title: '商品代码'
  },
  {
    key: 'skuName',
    title: '商品名称'
  },
  {
    key: 'purchaseSkuName',
    title: '采购商品名称'
  },
  {
    key: 'productSpec',
    title: '商品规格'
  },
  {
    key: 'productBrand',
    title: '品牌'
  },
  {
    key: 'unit',
    title: '计量单位'
  },
  {
    key: 'amount',
    title: '数量'
  },
  {
    key: 'sellMark',
    title: '销售备注'
  },
  {
    key: 'reqQualification',
    title: '资质要求'
  },
  {
    key: 'supplierRemark',
    title: '备注(供应商)',
    width: '150',
    type: 'input',
  },
]
